package com.mes.md.service.impl;

import com.mes.md.mapper.ItemSopMapper;
import com.mes.md.service.ItemSopService;
import com.mes.pojo.md.MdProductSop;
import com.mes.pojo.produce.ProcessSetting;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/24 11:22
 */

@Service
public class ItemSopServiceImpl implements ItemSopService {
    @Autowired
    private ItemSopMapper itemSopMapper;

    @Override
    public List<MdProductSop> querySopByItemId(Long itemId) {
        return  itemSopMapper.querySopByItemId(itemId);
    }

    @Override
    public MdProductSop querySopById(Long sopId) {
        return itemSopMapper.querySopById(sopId);
    }

    @Override
    public List<ProcessSetting> queryProcessList(Long itemId) {
        return itemSopMapper.queryProcessList(itemId);
    }

    @Override
    public Integer addSop(MdProductSop itemSop) {
        return itemSopMapper.addSop(itemSop);
    }
}
